<?php
$scriptid= $_POST['ScriptID'];
$uid= $_POST['Uid'];
$conn=mysql_connect("localhost:3306", "root", "root") or die("ERROR: Cannot open database");
$db = "footprintdb";
mysql_select_db($db) or die("ERROR: Cannot open database");
$table = "scripttable";
$sql = "DELETE FROM scripttable WHERE ScriptID='".$scriptid."'";
$result = mysql_query ( $sql ) or die ( "Error in query execution. ");
system("rm -rf ./".$uid."/".$scriptid);
?>